- var language = current.path[1] || 'ts'
- if (language !== 'ts' || language !== 'js' || language !== 'dart') { language = 'ts'; }

nav(data-swiftype-index="false" class="main-nav l-pinned-top l-layer-5", scroll-y-offset-element)
  h1 <a href="/" md-button>Angular <sup>by Google</sup></a>

  button(class="main-nav-button main-nav-mobile-trigger l-right" aria-label="View Menu" ng-click="appCtrl.toggleMainMenu($event)" md-button) Site Menu <span class="icon icon-arrow-drop-down"></span>

  ul(ng-class="appCtrl.showMainNav ? 'is-visible' : ''")
    li.l-left <a class="main-nav-button" href="/features.html" md-button>Features</a>
    li.l-left <a class="main-nav-button" href="/docs/#{language}/latest/" md-button>Docs</a>
    li.l-left <a class="main-nav-button" href="/events.html" md-button>Events</a>
    li.l-right <a class="main-nav-button" href="/docs/ts/latest/quickstart.html" md-button>Get Started</a>
